package com.wrupple.muba.catalogs.client.module.services.presentation.impl;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Image;
import com.wrupple.muba.catalogs.client.module.services.presentation.CatalogIconDelegate;
import com.wrupple.muba.catalogs.client.resources.CatalogApplicationIcons;
import com.wrupple.muba.catalogs.domain.CatalogPlace;
import com.wrupple.muba.common.client.activity.IconWithLabelPlaceDelegate;

public class CatalogIconDelegateImpl extends IconWithLabelPlaceDelegate<CatalogPlace> implements CatalogIconDelegate {
	CatalogApplicationIcons theme;
	
	public CatalogIconDelegateImpl() {
		super();
		this.theme = GWT.create(CatalogApplicationIcons.class);
	}

	@Override
	protected Image getImage(CatalogPlace o) {
		return new Image(theme.catalog());
	}
	
	

}
